How to: Run commands automatically when starting MS-DOS.
Solution:
In Notepad, type the commands to automate MSDOS startup, and save the file as Dosstart.bat. Restart the computer in MS-DOS mode.
1) Make a backup copy of Dosstart.bat:
a) Click the 'Start' button to display the 'Start' menu.
b) Select 'Programs' and select 'Accessories'. (The 'Accessories' menu appears.)
c) Select 'Notepad'. (A blank Notepad document appears.)
d) Select the 'File' menu and select 'Open'. (The 'Open' dialog box appears.)
e) Type C:\WINDOWS\DOSSTART.BAT in the 'File name' text box and click 'Open'. (The 'Dosstart.bat - Notepad' window appears.)
f) Select the 'File' menu and select 'Save As...'. (The 'Save As' dialog box appears.)
g) Type DOSSTART.XXX in the 'File name' text box.
h) Select 'All files *.*' from the 'Files of type' drop-down list box.
i) Click 'Save'. (A backup copy of Dosstart.bat is created.)
2) Type the desired DOS commands:
NOTE: Be sure to type each command on a separate line.
EXAMPLE: @C:\PROGRA~1\NORTON~2\NAVBOOT.EXE /STARTUP
rem - By Windows Setup - LH C:\WINDOWS\COMMAND\MSCDEX
3) Select the 'File' menu and select 'Save As...'. (The 'Save As' dialog box appears.)
4) In the 'File Name' box, type the following:
C:\WINDOWS\DOSSTART.BAT
5) Select 'All files *.*' from the 'Files of type' drop-down list box.
6) Click 'Save'. (A confirmation dialog box appears.)
'Notepad Save As' dialog box
7) Click 'Yes' to overwrite the existing Dosstart.bat file.
8) Select the 'File' menu and select 'Exit' to close Notepad.
9) Click 'Start' to display the Windows 'Start' menu. (A submenu appears.)
10) Select 'Shut Down...'. (The 'Shut Down Windows' dialog box appears.)
11) Select the 'Restart the computer in MS-DOS Mode' radio button.
12) Click 'Yes'. The system reboots to DOS using the commands entered in the Dosstart.bat file.